import request from '@/sheep/request';
export default {
	orderList: (data) =>
		request({
			url: 'admindata/index',
			method: 'POST',
			data,
		}),
	orderProfile: (data) =>
		request({
			url: 'dashboard/ordergk',
			method: 'POST',
			data,
		}),
	allOrderData: (data) =>
		request({
			url: 'custom/tjdata',
			method: 'POST',
			data,
		}),
	orderRemark: (data) =>
		request({
			url: 'custom/odermemo',
			method: 'POST',
			data,
		}),
	//订单待发货--退款
	cancelMoney: (data) =>
	  request({
	    url: `order/fullRefund/id/${data.id}`,
	    method: 'POST',
		data
	  }),
    orderDispatch: (data) =>
    	request({
    		url: 'custom/dispatch',
    		method: 'POST',
    		data,
    	}),
    orderDetail: (id) =>
      request({
        url: 'custom/orderdetail',
        method: 'GET',
        params: {
          id: id,
        },
      }),
};
